/**
 * 
 */
package org.william.common_boot.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/** 
 * Description: 
 * @author xuhongwei
 * @version 1.0
 * <pre>
 * Modification History: 
 * Date         Author      Version     Description 
------------------------------------------------------------------
 * 2018年4月26日    xuhongwei     1.0        1.0 Version 
 * </pre>
 */
@RestController
public class RedisControlDemo {
	
	@Autowired
	RedisService redisService;
	
	@RequestMapping(value="/queryOtherDataZero",method=RequestMethod.GET)
	public String queryOtherDataZero(){
		return redisService.queryOtherDataZero();
	}
	
	@RequestMapping(value="/querySwitchinDBOne",method=RequestMethod.GET)
	public String querySwitchinDBOne(){
		return redisService.querySwitchinDBOne();
	}
		
	@RequestMapping(value="/querySwitchinDBTwo",method=RequestMethod.GET)
	public String querySwitchinDBTwo(){
		return redisService.querySwitchinDBTwo();
	}
}
